package com.database.service;

import com.database.character.Collect;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CollectService {

  //增加收藏
  int addCollect(Collect collect);

  //取消收藏
  int deleteByCollectId(Integer collectId);

  //根据userId查询收藏
  List<Collect> getCollectByUid(Integer userId);

  //根据userId和postId查询收藏
  Collect getCollectByUidAndPid(Integer userId, Integer postId);

  int deleteByUidAndPid(Integer userId, Integer postId);

}
